Skip to content

ci: auto-merge Dependabot PRs that pass all required checks#614

Merged
nolik merged 2 commits into
mainfrom
ci/dependabot-automerge
Jul 25, 2026
Merged

ci: auto-merge Dependabot PRs that pass all required checks#614
nolik merged 2 commits into
mainfrom
ci/dependabot-automerge

Conversation

@nolik

@nolik nolik commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Enables GitHub's native auto-merge (squash) on Dependabot's own PRs for patch and minor bumps. A new workflow (dependabot-automerge.yml) turns on auto-merge; GitHub then merges only once the branch's required status checks pass — so a bump lands only when the full suite is green. Major bumps are left open for manual review (gated via dependabot/fetch-metadata on update-type != semver-major).

Companion change (already applied to main branch protection): required status checks expanded from just build to lint + build + e2e + audit. Without this, auto-merge would fire on build alone. CodeQL is intentionally left non-required (it legitimately "skips" on some docker/actions-only PRs, which would otherwise stall merges). allow_update_branch is on, so auto-merge auto-updates a behind PR branch under the strict (up-to-date) rule.

No approval step — main requires 0 reviews.

Consequences:

  • These required checks now gate all PRs (human + Dependabot), not just this workflow.
  • Auto-merge → push to maindeploy.ymlflyctl deploy, so passing non-major bumps ship to production automatically.

Note: this PR is not itself a Dependabot PR, so it won't auto-merge — merged manually once green.

🤖 Generated with Claude Code

nolik and others added 2 commits July 25, 2026 14:28
Adds a workflow that enables GitHub's native auto-merge (squash) on
Dependabot's own PRs. The actual merge is gated by the branch's required
status checks (lint, build, e2e, audit) — auto-merge waits for them, so a
bump only lands when the full CI suite is green. No approval step is
needed (main requires 0 reviews). Applies to all update types, including
majors, as long as CI passes; a commented note shows how to exclude
majors later.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a dependabot/fetch-metadata step and gates auto-merge on
update-type != semver-major. Patch and minor bumps auto-merge once the
required checks pass; major bumps stay open for manual review.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nolik
nolik merged commit 66a09e2 into main Jul 25, 2026
8 checks passed
@nolik
nolik deleted the ci/dependabot-automerge branch July 25, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant